package com.yunhe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goodstype")
public class GoodsType implements Serializable {
    public static final long serialVersionUID=1L;

    //测试一个异常情况
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("编码")
    private Integer id;
    @ApiModelProperty("物品分类名称")
    private String name;
    @ApiModelProperty("备注信息")
    private String remark;
}